The purpose of this model is to understand how genetic architectures of alternative reproductive tactics impact their maintenance in populations. I’m using an individual-based simulation model with different selection scenarios, types of alternative tactics, and genetic architectures (genome-wide additive genetic variance, supergenes, expression networks).

Overview of the model

Males can be courters or not-courters and parents or not-parents. When the model is run with both traits, this results in four possible morphs: courter/parent, courter/not-parent, not-courter/parent, and not-courter/not-parent. Generations are non-overlapping and there is one reproductive bout per generation. In each generation, the population follows the following timeline:

Fig. 1 Flowchart of simulation

Fig. 1 Flowchart of simulation

each step is explained in further detail below.

1. Choosing a nest

A female samples 50 males and chooses a male to nest with based on his courtship trait. If there are no courtship traits in the model, she chooses based on the male’s parental trait. If she does not encouter an acceptable male, she does not nest. If she encounters multiple equally-acceptable males, she randomly selects one of them.

2. Fertilization

Once a female decides to nest, up to three males can fertilize the nest. Courters and parental males can contribute more sperm than non-courter and non-parental males: \(r_{courter}=r_{parent}=8\) and \(r_{non-courter}=r_{non-parent}=4\). A courter/non-parent has \(r_{non-parent}\) and a non-courter/parent has \(r_{parent}\). The male with whom the female is nesting gets \(r_{parent}/\Sigma{n_{sperm}}\) and additional non-parental males (up to 2) get \((r_{non-parent}*0.5/\Sigma{n_{sperm}})\), where \(\Sigma{n_{sperm}}\) is the total number of sperm contributed by all of the males, weighted by the sperm competition factor (0.5 is the default for all males except the nesting male). So, when a female mates with one courter and two non-parentals, \(\Sigma{n_{sperm}}\) = \(r_{courter}\) + 2\(*\)(0.5\(*\)\(r_{sneaker}\)), where \(r_{courter}\) = 8 and \(r_{sneaker}\) = 4, therefore \(\Sigma{n_{sperm}}\) = 12.

That being said, every time a male mates he uses his sperm, so after one mating where a courter fertilizes 50% of the female’s 4 eggs, he only has 6 sperm for his next mating.

3. Nest Survival

Before the babies can survive, the nest has to survive. This step is only relevant when parental traits are in the model - if only the courtship trait is specified, then all progeny in the nest survive at this point. When males have the parental trait, if the female has given eggs to a non-parental male (because she chose based on courtship traits), then the nest has a 10% chance of surviving. If the female has given eggs to a parental male, the nest has a 90% chance of surviving.

4. Density-dependent survival

Once the identities of the surviving nests are known–along with the identities of the parents, including sneaker parents–the offspring are created in the simulation. The offspring are created to fill the full carrying capacity of the population, with the numbers per nest being equally divided among all surviving offspring. This allows the population to maintain a constant population size (prior to viability selection) while maintaining the relative successes of the given genotypes/morphs.

5. Viability selection

Before becoming adults, the offspring experience viability selection. Courters and parental males are disfavored in viability selection, with a survival probability of 0.9950125. If an individual is both a courter and a parental male, the survival probability is 0.9900498. Non-courters and non-parental males have survival probabilities of 1.

Evaluating equilibrium

After 10000 generations, I begin tracking the change in frequency of the courter and parent traits, and do so for 2000 additional generations. I calculate the variance in the change in frequency over those 2000 generations. I declare an equilibrium (‘stasis’) has been reached if the last change in frequency of both traits is less than the variance in changes in frequency.

Unlinked additive genetic variance

In these cases, the traits are encoded by a number (50) of loci, whose alleles contribute additively to determine the trait value. These alleles are all freely recombining and are not adhered to any physical genomic location (aka this is a classical quantitative genetics approach). The overall trait value is compared to a population-level threshold (which is static, in these cases), and if the trait value is above the threshold the male takes the parent or courter morph and if it is below he does not. Below, I’m showing the results from 10 replicates of each scenario.

Courter trait

Females choose nests based on whether the male is a courter or not, and they all prefer courters all of the time (the female preference does not have a genetic basis and does not evolve). The only way that non-courters produce offspring is through sneaking, but all males can be sneakers (both courters and non-courters). Because parental care is not incorporated in this model, all nests survive.

With viability selection

Frequency of the courter morph with unlinked additive genetic variances (each color represents a different replicate)

Frequency of the courter morph with unlinked additive genetic variances (each color represents a different replicate)

Of the 20 replicates, 20 reached a steady state by 10000 generations. The different runs all overlap, suggesting that they all converge on the same outcome: all males are courters. This result is also obvious by inspecting a table of courter frequencies and fitnesses in the final generation of the runs.

Frequency of courters in final generation of runs with unlinked additive genetic variances
CourterFreq CourterW NonCourterW
courter_unlinked_1_summary.txt_1 1 2.05590 0
courter_unlinked_1_summary.txt_2 1 1.98204 0
courter_unlinked_1_summary.txt_3 1 2.09283 0
courter_unlinked_1_summary.txt_4 1 2.00000 0
courter_unlinked_2_summary.txt_1 1 2.05590 0
courter_unlinked_2_summary.txt_2 1 1.98204 0
courter_unlinked_2_summary.txt_3 1 2.09283 0
courter_unlinked_2_summary.txt_4 1 2.00000 0
courter_unlinked_3_summary.txt_1 1 2.05590 0
courter_unlinked_3_summary.txt_2 1 1.98204 0
courter_unlinked_3_summary.txt_3 1 2.09283 0
courter_unlinked_3_summary.txt_4 1 2.00000 0
courter_unlinked_4_summary.txt_1 1 1.92442 0
courter_unlinked_4_summary.txt_2 1 2.00000 0
courter_unlinked_4_summary.txt_3 1 1.96063 0
courter_unlinked_4_summary.txt_4 1 1.97614 0
courter_unlinked_5_summary.txt_1 1 1.92442 0
courter_unlinked_5_summary.txt_2 1 2.00000 0
courter_unlinked_5_summary.txt_3 1 1.96063 0
courter_unlinked_5_summary.txt_4 1 1.97614 0

We may also be interested in the evolution of the courter trait values, which reflects the additive effects of all loci.

Evolution of courtship trait with unlinked loci

Evolution of courtship trait with unlinked loci

Without viability selection

Frequency of the courter morph with unlinked additive genetic variances and without viability selection (each color represents a different replicate)

Frequency of the courter morph with unlinked additive genetic variances and without viability selection (each color represents a different replicate)

Of the 20 replicates, 20 reached a steady state by 10000 generations. The different runs all overlap, suggesting that they all converge on the same outcome: all males are courters. This result is also obvious by inspecting a table of courter frequencies and fitnesses in the final generation of the runs.

Frequency of courters in final generation of runs with unlinked additive genetic variances and no viability selection
CourterFreq CourterW NonCourterW
courter_unlinked_novs_1_summary.txt_1 1 2.00401 0
courter_unlinked_novs_1_summary.txt_2 1 2.13220 0
courter_unlinked_novs_1_summary.txt_3 1 2.02020 0
courter_unlinked_novs_1_summary.txt_4 1 2.13220 0
courter_unlinked_novs_2_summary.txt_1 1 2.00401 0
courter_unlinked_novs_2_summary.txt_2 1 2.13220 0
courter_unlinked_novs_2_summary.txt_3 1 2.02020 0
courter_unlinked_novs_2_summary.txt_4 1 2.13220 0
courter_unlinked_novs_3_summary.txt_1 1 2.00401 0
courter_unlinked_novs_3_summary.txt_2 1 2.13220 0
courter_unlinked_novs_3_summary.txt_3 1 2.02020 0
courter_unlinked_novs_3_summary.txt_4 1 2.13220 0
courter_unlinked_novs_4_summary.txt_1 1 2.05339 0
courter_unlinked_novs_4_summary.txt_2 1 2.04918 0
courter_unlinked_novs_4_summary.txt_3 1 1.96078 0
courter_unlinked_novs_4_summary.txt_4 1 1.96850 0
courter_unlinked_novs_5_summary.txt_1 1 2.05339 0
courter_unlinked_novs_5_summary.txt_2 1 2.04918 0
courter_unlinked_novs_5_summary.txt_3 1 1.96078 0
courter_unlinked_novs_5_summary.txt_4 1 1.96850 0

We may also be interested in the evolution of the courter trait values, which reflects the additive effects of all loci.

Evolution of courtship trait with unlinked loci and no viability selection

Evolution of courtship trait with unlinked loci and no viability selection

Parental trait

In this case, there are no courtship traits so females lay eggs in nests randomly. Non-parental males will sneak fertilizations in parental males’ nests. Parental males provide care that allows nests to have a 90% chance of survival. The female preference does not have a genetic basis and does not evolve.

With viability selection

Frequency of parent morph with unlinked loci (each color represents a different replicate)

Frequency of parent morph with unlinked loci (each color represents a different replicate)

Again, inference is facilitated by looking at the final frequencies and fitnesses in each replicate:

Frequency of parents in final generation
ParentFreq ParentW NonParentW
parent_unlinked_1_summary.txt_1 0.877847 1.68632 0.847458
parent_unlinked_1_summary.txt_2 0.898077 1.56959 0.754717
parent_unlinked_1_summary.txt_3 0.891473 1.63913 0.553571
parent_unlinked_1_summary.txt_4 0.896686 1.63043 0.584906
parent_unlinked_2_summary.txt_1 0.877847 1.68632 0.847458
parent_unlinked_2_summary.txt_2 0.898077 1.56959 0.754717
parent_unlinked_2_summary.txt_3 0.891473 1.63913 0.553571
parent_unlinked_2_summary.txt_4 0.896686 1.63043 0.584906
parent_unlinked_3_summary.txt_1 0.877847 1.68632 0.847458
parent_unlinked_3_summary.txt_2 0.898077 1.56959 0.754717
parent_unlinked_3_summary.txt_3 0.891473 1.63913 0.553571
parent_unlinked_3_summary.txt_4 0.896686 1.63043 0.584906
parent_unlinked_4_summary.txt_1 0.875248 1.63122 0.666667
parent_unlinked_4_summary.txt_2 0.921154 1.64927 1.268290
parent_unlinked_4_summary.txt_3 0.892655 1.63291 0.719298
parent_unlinked_4_summary.txt_4 0.881188 1.66742 0.866667
parent_unlinked_5_summary.txt_1 0.896328 1.91084 1.041670
parent_unlinked_5_summary.txt_2 0.914934 1.68388 0.888889
parent_unlinked_5_summary.txt_3 0.872984 1.72517 0.682540
parent_unlinked_5_summary.txt_4 0.885149 1.59955 0.603448

Variation was maintained in 20 of the 20. 0 of the 20 populations crashed. Of the 20 replicates, 20 reached an equilibrium by 10000 generations.

Let’s take a look at how the parent trait values evolve

Evolution of parenting trait values with additive genetic variation

Evolution of parenting trait values with additive genetic variation

Without viability selection

Frequency of parent morph with unlinked loci without viability selection (each color represents a different replicate)

Frequency of parent morph with unlinked loci without viability selection (each color represents a different replicate)

Again, inference is facilitated by looking at the final frequencies and fitnesses in each replicate:

Frequency of parents in final generation
ParentFreq ParentW NonParentW
parent_unlinked_novs_1_summary.txt_1 0.821429 1.68798 0.729412
parent_unlinked_novs_1_summary.txt_2 0.897030 1.58278 1.019230
parent_unlinked_novs_1_summary.txt_3 0.897287 1.65443 0.886792
parent_unlinked_novs_1_summary.txt_4 0.889571 1.67126 0.666667
parent_unlinked_novs_2_summary.txt_1 0.821429 1.68798 0.729412
parent_unlinked_novs_2_summary.txt_2 0.897030 1.58278 1.019230
parent_unlinked_novs_2_summary.txt_3 0.897287 1.65443 0.886792
parent_unlinked_novs_2_summary.txt_4 0.889571 1.67126 0.666667
parent_unlinked_novs_3_summary.txt_1 0.821429 1.68798 0.729412
parent_unlinked_novs_3_summary.txt_2 0.897030 1.58278 1.019230
parent_unlinked_novs_3_summary.txt_3 0.897287 1.65443 0.886792
parent_unlinked_novs_3_summary.txt_4 0.889571 1.67126 0.666667
parent_unlinked_novs_4_summary.txt_1 0.878431 1.70089 0.709677
parent_unlinked_novs_4_summary.txt_2 0.876797 1.70726 0.616667
parent_unlinked_novs_4_summary.txt_3 0.855131 1.66824 0.513889
parent_unlinked_novs_4_summary.txt_4 0.859961 1.61239 0.422535
parent_unlinked_novs_5_summary.txt_1 0.878431 1.70089 0.709677
parent_unlinked_novs_5_summary.txt_2 0.876797 1.70726 0.616667
parent_unlinked_novs_5_summary.txt_3 0.855131 1.66824 0.513889
parent_unlinked_novs_5_summary.txt_4 0.859961 1.61239 0.422535

Variation was maintained in 20 of the 20. 0 of the 20 populations crashed. Of the 20 replicates, 20 reached an equilibrium by 10000 generations.

Let’s take a look at how the parent trait values evolve

Evolution of parenting trait values with additive genetic variation and no viability selection

Evolution of parenting trait values with additive genetic variation and no viability selection

Courtship and Parental Traits

Females choose nests based on males’ courtship trait (they all only nest with courting males, and the female preference does not have a genetic basis and does not evolve), and then the survival of the nest depends on whether the courting male is also a parental male. If the chosen male is a parental male, the nest has a 90% chance of survival. Otherwise, it only has a 10% chance. Non-courters and non-parents can reproduce through sneaking.

With viability selection

The different runs have different outcomes.

Let’s look at the morph frequencies for each run.

Frequency of the 4 morphs in each rep with unlinked genetic variation

Frequency of the 4 morphs in each rep with unlinked genetic variation

In some of the runs the population crashed after few generations. This is obvious when looking at the the final frequencies in a table as well:

Frequency of morphs in final generation
Generation Pop PopSize NumMal NumFem NumProgeny ParentThresh ParentFreq ParentAEmean ParentAEsd ParentW NonParentW CourterThresh CourterFreq CourterAEmean CourterAEsd CourterW NonCourterW FreqNcNp FreqCNp FreqNcP FreqCP PrefThresh PrefFreq
parent-courter_unlinked_1_summary.txt_1 11999 Pop0 1000 495 505 1000 0.263752 0.929293 0.562751 0.4671910 1.81739 1.142860 0.3495540 0.929293 0.5258710 0.2754980 1.817390 1.14286 0.0707071 0.000000 0.000000 0.929293 NA NA
parent-courter_unlinked_1_summary.txt_2 11999 Pop1 1000 499 501 1000 0.263752 0.915832 0.555920 0.4721570 1.82495 1.309520 0.3495540 0.915832 0.5218420 0.2784270 1.824950 1.30952 0.0841683 0.000000 0.000000 0.915832 NA NA
parent-courter_unlinked_1_summary.txt_3 11999 Pop2 951 488 463 1000 0.263752 0.934426 0.557334 0.4599470 1.85746 2.093750 0.3495540 0.934426 0.5226760 0.2712270 1.857460 2.09375 0.0655738 0.000000 0.000000 0.934426 NA NA
parent-courter_unlinked_1_summary.txt_4 11999 Pop3 1000 494 506 1000 0.263752 0.925101 0.574933 0.4780440 1.79650 1.675680 0.3495540 0.925101 0.5330540 0.2818980 1.796500 1.67568 0.0748988 0.000000 0.000000 0.925101 NA NA
parent-courter_unlinked_2_summary.txt_1 11999 Pop0 1000 495 505 1000 0.263752 0.929293 0.562751 0.4671910 1.81739 1.142860 0.3495540 0.929293 0.5258710 0.2754980 1.817390 1.14286 0.0707071 0.000000 0.000000 0.929293 NA NA
parent-courter_unlinked_2_summary.txt_2 11999 Pop1 1000 499 501 1000 0.263752 0.915832 0.555920 0.4721570 1.82495 1.309520 0.3495540 0.915832 0.5218420 0.2784270 1.824950 1.30952 0.0841683 0.000000 0.000000 0.915832 NA NA
parent-courter_unlinked_2_summary.txt_3 11999 Pop2 951 488 463 1000 0.263752 0.934426 0.557334 0.4599470 1.85746 2.093750 0.3495540 0.934426 0.5226760 0.2712270 1.857460 2.09375 0.0655738 0.000000 0.000000 0.934426 NA NA
parent-courter_unlinked_2_summary.txt_4 11999 Pop3 1000 494 506 1000 0.263752 0.925101 0.574933 0.4780440 1.79650 1.675680 0.3495540 0.925101 0.5330540 0.2818980 1.796500 1.67568 0.0748988 0.000000 0.000000 0.925101 NA NA
parent-courter_unlinked_3_summary.txt_1 11999 Pop0 1000 495 505 1000 0.263752 0.929293 0.562751 0.4671910 1.81739 1.142860 0.3495540 0.929293 0.5258710 0.2754980 1.817390 1.14286 0.0707071 0.000000 0.000000 0.929293 NA NA
parent-courter_unlinked_3_summary.txt_2 11999 Pop1 1000 499 501 1000 0.263752 0.915832 0.555920 0.4721570 1.82495 1.309520 0.3495540 0.915832 0.5218420 0.2784270 1.824950 1.30952 0.0841683 0.000000 0.000000 0.915832 NA NA
parent-courter_unlinked_3_summary.txt_3 11999 Pop2 951 488 463 1000 0.263752 0.934426 0.557334 0.4599470 1.85746 2.093750 0.3495540 0.934426 0.5226760 0.2712270 1.857460 2.09375 0.0655738 0.000000 0.000000 0.934426 NA NA
parent-courter_unlinked_3_summary.txt_4 11999 Pop3 1000 494 506 1000 0.263752 0.925101 0.574933 0.4780440 1.79650 1.675680 0.3495540 0.925101 0.5330540 0.2818980 1.796500 1.67568 0.0748988 0.000000 0.000000 0.925101 NA NA
parent-courter_unlinked_4_summary.txt_1 2024 Pop0 4 1 3 8 -1.539100 1.000000 -1.535610 0.0034900 4.00000 0.000000 0.0122363 0.000000 -0.0602028 0.0724391 0.000000 4.00000 0.0000000 0.000000 1.000000 0.000000 NA NA
parent-courter_unlinked_4_summary.txt_2 1835 Pop1 4 4 0 0 -1.539100 0.000000 -1.585000 0.0458986 0.00000 0.000000 0.0122363 1.000000 0.9649200 0.9526830 0.000000 0.00000 0.0000000 1.000000 0.000000 0.000000 NA NA
parent-courter_unlinked_4_summary.txt_3 2024 Pop2 496 260 236 579 -1.539100 0.442308 -1.547570 0.0453683 0.00000 0.358621 0.0122363 0.557692 0.1881920 0.9416770 0.358621 0.00000 0.0000000 0.557692 0.442308 0.000000 NA NA
parent-courter_unlinked_4_summary.txt_4 2024 Pop3 435 221 214 486 -1.539100 0.447964 -1.548120 0.0447194 0.00000 0.598361 0.0122363 0.552036 0.1995570 0.9282090 0.598361 0.00000 0.0000000 0.552036 0.447964 0.000000 NA NA
parent-courter_unlinked_5_summary.txt_1 2024 Pop0 4 1 3 8 -1.539100 1.000000 -1.535610 0.0034900 4.00000 0.000000 0.0122363 0.000000 -0.0602028 0.0724391 0.000000 4.00000 0.0000000 0.000000 1.000000 0.000000 NA NA
parent-courter_unlinked_5_summary.txt_2 1835 Pop1 4 4 0 0 -1.539100 0.000000 -1.585000 0.0458986 0.00000 0.000000 0.0122363 1.000000 0.9649200 0.9526830 0.000000 0.00000 0.0000000 1.000000 0.000000 0.000000 NA NA
parent-courter_unlinked_5_summary.txt_3 2024 Pop2 496 260 236 579 -1.539100 0.442308 -1.547570 0.0453683 0.00000 0.358621 0.0122363 0.557692 0.1881920 0.9416770 0.358621 0.00000 0.0000000 0.557692 0.442308 0.000000 NA NA
parent-courter_unlinked_5_summary.txt_4 2024 Pop3 435 221 214 486 -1.539100 0.447964 -1.548120 0.0447194 0.00000 0.598361 0.0122363 0.552036 0.1995570 0.9282090 0.598361 0.00000 0.0000000 0.552036 0.447964 0.000000 NA NA

Multiple morphs are maintained in 20 of the 20 replicates, and those morphs contain either a parent or a courter.

Evolution of the courter and parenting trait values in each rep with unlinked genetic variation

Evolution of the courter and parenting trait values in each rep with unlinked genetic variation

Without viability selection

The different runs have different outcomes.

Let’s look at the morph frequencies for each run.

Frequency of the 4 morphs in each rep with unlinked genetic variation and no viability selection

Frequency of the 4 morphs in each rep with unlinked genetic variation and no viability selection

In some of the runs the population crashed after few generations. This is obvious when looking at the the final frequencies in a table as well:

Frequency of morphs in final generation
Generation Pop PopSize NumMal NumFem NumProgeny ParentThresh ParentFreq ParentAEmean ParentAEsd ParentW NonParentW CourterThresh CourterFreq CourterAEmean CourterAEsd CourterW NonCourterW FreqNcNp FreqCNp FreqNcP FreqCP PrefThresh PrefFreq
parent-courter_unlinked_novs_1_summary.txt_1 11999 Pop0 966 504 462 1000 0.876646 0.906746 1.09688 0.235547 1.82276 1.425530 1.270200 0.906746 2.002970 0.783700 1.822760 1.42553 0.0932540 0.000000 0.000000 0.906746 NA NA
parent-courter_unlinked_novs_1_summary.txt_2 11999 Pop1 951 504 447 1000 0.876646 0.898810 1.09639 0.233716 1.81678 1.470590 1.270200 0.898810 2.001320 0.777608 1.816780 1.47059 0.1011900 0.000000 0.000000 0.898810 NA NA
parent-courter_unlinked_novs_1_summary.txt_3 11999 Pop2 949 472 477 1000 0.876646 0.930085 1.10464 0.237480 1.87699 1.757580 1.270200 0.930085 2.028780 0.790132 1.876990 1.75758 0.0699153 0.000000 0.000000 0.930085 NA NA
parent-courter_unlinked_novs_1_summary.txt_4 11999 Pop3 950 479 471 1000 0.876646 0.908142 1.09918 0.234665 1.92414 1.431820 1.270200 0.908142 2.010620 0.780766 1.924140 1.43182 0.0918580 0.000000 0.000000 0.908142 NA NA
parent-courter_unlinked_novs_2_summary.txt_1 11999 Pop0 966 504 462 1000 0.876646 0.906746 1.09688 0.235547 1.82276 1.425530 1.270200 0.906746 2.002970 0.783700 1.822760 1.42553 0.0932540 0.000000 0.000000 0.906746 NA NA
parent-courter_unlinked_novs_2_summary.txt_2 11999 Pop1 951 504 447 1000 0.876646 0.898810 1.09639 0.233716 1.81678 1.470590 1.270200 0.898810 2.001320 0.777608 1.816780 1.47059 0.1011900 0.000000 0.000000 0.898810 NA NA
parent-courter_unlinked_novs_2_summary.txt_3 11999 Pop2 949 472 477 1000 0.876646 0.930085 1.10464 0.237480 1.87699 1.757580 1.270200 0.930085 2.028780 0.790132 1.876990 1.75758 0.0699153 0.000000 0.000000 0.930085 NA NA
parent-courter_unlinked_novs_2_summary.txt_4 11999 Pop3 950 479 471 1000 0.876646 0.908142 1.09918 0.234665 1.92414 1.431820 1.270200 0.908142 2.010620 0.780766 1.924140 1.43182 0.0918580 0.000000 0.000000 0.908142 NA NA
parent-courter_unlinked_novs_3_summary.txt_1 11999 Pop0 966 504 462 1000 0.876646 0.906746 1.09688 0.235547 1.82276 1.425530 1.270200 0.906746 2.002970 0.783700 1.822760 1.42553 0.0932540 0.000000 0.000000 0.906746 NA NA
parent-courter_unlinked_novs_3_summary.txt_2 11999 Pop1 951 504 447 1000 0.876646 0.898810 1.09639 0.233716 1.81678 1.470590 1.270200 0.898810 2.001320 0.777608 1.816780 1.47059 0.1011900 0.000000 0.000000 0.898810 NA NA
parent-courter_unlinked_novs_3_summary.txt_3 11999 Pop2 949 472 477 1000 0.876646 0.930085 1.10464 0.237480 1.87699 1.757580 1.270200 0.930085 2.028780 0.790132 1.876990 1.75758 0.0699153 0.000000 0.000000 0.930085 NA NA
parent-courter_unlinked_novs_3_summary.txt_4 11999 Pop3 950 479 471 1000 0.876646 0.908142 1.09918 0.234665 1.92414 1.431820 1.270200 0.908142 2.010620 0.780766 1.924140 1.43182 0.0918580 0.000000 0.000000 0.908142 NA NA
parent-courter_unlinked_novs_4_summary.txt_1 11999 Pop0 1000 514 486 1000 1.188380 0.461089 1.07559 1.222950 0.00000 0.339350 0.344879 0.538911 0.373095 0.305945 0.339350 0.00000 0.0000000 0.538911 0.461089 0.000000 NA NA
parent-courter_unlinked_novs_4_summary.txt_2 11999 Pop1 1000 519 481 1000 1.188380 0.452794 1.07010 1.230870 0.00000 0.390845 0.344879 0.547206 0.374467 0.307926 0.390845 0.00000 0.0000000 0.547206 0.452794 0.000000 NA NA
parent-courter_unlinked_novs_4_summary.txt_3 11999 Pop2 1000 533 467 1000 1.188380 0.465291 1.07074 1.214330 0.00000 0.403509 0.344879 0.534709 0.374307 0.303788 0.403509 0.00000 0.0000000 0.534709 0.465291 0.000000 NA NA
parent-courter_unlinked_novs_4_summary.txt_4 11999 Pop3 1000 514 486 1000 1.188380 0.463035 1.09061 1.229310 0.00000 0.489130 0.344879 0.536965 0.369337 0.307536 0.489130 0.00000 0.0000000 0.536965 0.463035 0.000000 NA NA
parent-courter_unlinked_novs_5_summary.txt_1 11999 Pop0 1000 514 486 1000 1.188380 0.461089 1.07559 1.222950 0.00000 0.339350 0.344879 0.538911 0.373095 0.305945 0.339350 0.00000 0.0000000 0.538911 0.461089 0.000000 NA NA
parent-courter_unlinked_novs_5_summary.txt_2 11999 Pop1 1000 519 481 1000 1.188380 0.452794 1.07010 1.230870 0.00000 0.390845 0.344879 0.547206 0.374467 0.307926 0.390845 0.00000 0.0000000 0.547206 0.452794 0.000000 NA NA
parent-courter_unlinked_novs_5_summary.txt_3 11999 Pop2 1000 533 467 1000 1.188380 0.465291 1.07074 1.214330 0.00000 0.403509 0.344879 0.534709 0.374307 0.303788 0.403509 0.00000 0.0000000 0.534709 0.465291 0.000000 NA NA
parent-courter_unlinked_novs_5_summary.txt_4 11999 Pop3 1000 514 486 1000 1.188380 0.463035 1.09061 1.229310 0.00000 0.489130 0.344879 0.536965 0.369337 0.307536 0.489130 0.00000 0.0000000 0.536965 0.463035 0.000000 NA NA

Multiple morphs are maintained in 20 of the 20 replicates, and those morphs contain either a parent or a courter.

Evolution of the courter and parenting trait values in each rep with unlinked genetic variation and without viability selection

Evolution of the courter and parenting trait values in each rep with unlinked genetic variation and without viability selection

Linked additive genetic variance

In these cases, the traits are encoded by a number (50) of loci, whose alleles contribute additively to determine the trait value. These alleles anchored on chromosomes, equally distributed among the chromosomes (4). The overall trait value is compared to a population-level threshold (which is static, in these cases), and if the trait value is above the threshold the male takes the parent or courter morph and if it is below he does not. Below, I’m showing the results from 10 replicates of each scenario.

Courter trait

With viability selection

Frequency of the courter morph with linked QTLs (each color represents a different replicate)

Frequency of the courter morph with linked QTLs (each color represents a different replicate)

When only the courtship trait is included in the simulation, 0 of the 20 replicates reached an equilibrium by 10000 generations.

This is further evidenced by looking at a table of trait values and fitnesses in the final generation of each replicate

Frequency of courters with linked QTLs in final generation
CourterFreq CourterW NonCourterW
courter_linked_1_summary.txt_1 1 2.07708 0
courter_linked_1_summary.txt_2 1 2.02444 0
courter_linked_1_summary.txt_3 1 1.92996 0
courter_linked_1_summary.txt_4 1 1.97614 0
courter_linked_2_summary.txt_1 1 2.07708 0
courter_linked_2_summary.txt_2 1 2.02444 0
courter_linked_2_summary.txt_3 1 1.92996 0
courter_linked_2_summary.txt_4 1 1.97614 0
courter_linked_3_summary.txt_1 1 2.07708 0
courter_linked_3_summary.txt_2 1 2.02444 0
courter_linked_3_summary.txt_3 1 1.92996 0
courter_linked_3_summary.txt_4 1 1.97614 0
courter_linked_4_summary.txt_1 1 1.99396 0
courter_linked_4_summary.txt_2 1 1.91522 0
courter_linked_4_summary.txt_3 1 1.94163 0
courter_linked_4_summary.txt_4 1 1.90095 0
courter_linked_5_summary.txt_1 1 1.99396 0
courter_linked_5_summary.txt_2 1 1.91522 0
courter_linked_5_summary.txt_3 1 1.94163 0
courter_linked_5_summary.txt_4 1 1.90095 0

Every rep has the courtship trait go to fixation.

Let’s also evaluate the evolution of the courtship trait values:

Evolution of courtship trait with linked loci

Evolution of courtship trait with linked loci

Without viability selection

Frequency of the courter morph with linked QTLs and no viability selection (each color represents a different replicate)

Frequency of the courter morph with linked QTLs and no viability selection (each color represents a different replicate)

When only the courtship trait is included in the simulation, 0 of the 20 replicates reached an equilibrium by 10000 generations.

This is further evidenced by looking at a table of trait values and fitnesses in the final generation of each replicate

Frequency of courters with linked QTLs in final generation
CourterFreq CourterW NonCourterW
courter_linked_novs_1_summary.txt_1 1 1.99203 0
courter_linked_novs_1_summary.txt_2 1 1.95312 0
courter_linked_novs_1_summary.txt_3 1 2.03666 0
courter_linked_novs_1_summary.txt_4 1 1.96850 0
courter_linked_novs_2_summary.txt_1 1 2.04082 0
courter_linked_novs_2_summary.txt_2 1 2.04499 0
courter_linked_novs_2_summary.txt_3 1 2.05339 0
courter_linked_novs_2_summary.txt_4 1 1.92308 0
courter_linked_novs_3_summary.txt_1 1 1.99203 0
courter_linked_novs_3_summary.txt_2 1 1.95312 0
courter_linked_novs_3_summary.txt_3 1 2.03666 0
courter_linked_novs_3_summary.txt_4 1 1.96850 0
courter_linked_novs_4_summary.txt_1 1 1.94175 0
courter_linked_novs_4_summary.txt_2 1 2.02020 0
courter_linked_novs_4_summary.txt_3 1 2.05339 0
courter_linked_novs_4_summary.txt_4 1 1.97239 0
courter_linked_novs_5_summary.txt_1 1 1.94175 0
courter_linked_novs_5_summary.txt_2 1 2.02020 0
courter_linked_novs_5_summary.txt_3 1 2.05339 0
courter_linked_novs_5_summary.txt_4 1 1.97239 0

Every rep has the courtship trait go to fixation.

Let’s also evaluate the evolution of the courtship trait values:

Evolution of courtship trait with linked loci and without viability selection

Evolution of courtship trait with linked loci and without viability selection

Parental trait

With viability selection

Frequency of parent morph with linked QTLs (each color represents a different replicate)

Frequency of parent morph with linked QTLs (each color represents a different replicate)

When only the parental trait is included in the model with linked QTLs, variable outcomes can be reached – although all include each rep reaching some stable state with minor fluctuations.

Frequency of parents with linked QTLs in final generation
ParentFreq ParentW NonParentW
parent_linked_1_summary.txt_1 0.833333 1.65952 0.714286
parent_linked_1_summary.txt_2 0.821429 1.59420 0.655556
parent_linked_1_summary.txt_3 0.834008 1.73058 0.341463
parent_linked_1_summary.txt_4 0.785571 1.56122 0.598131
parent_linked_2_summary.txt_1 0.833333 1.65952 0.714286
parent_linked_2_summary.txt_2 0.821429 1.59420 0.655556
parent_linked_2_summary.txt_3 0.834008 1.73058 0.341463
parent_linked_2_summary.txt_4 0.785571 1.56122 0.598131
parent_linked_3_summary.txt_1 0.833333 1.65952 0.714286
parent_linked_3_summary.txt_2 0.821429 1.59420 0.655556
parent_linked_3_summary.txt_3 0.834008 1.73058 0.341463
parent_linked_3_summary.txt_4 0.785571 1.56122 0.598131
parent_linked_4_summary.txt_1 0.884112 1.62791 0.370968
parent_linked_4_summary.txt_2 0.867925 1.50217 0.671429
parent_linked_4_summary.txt_3 0.865385 1.64889 0.728571
parent_linked_4_summary.txt_4 0.869307 1.64465 0.787879
parent_linked_5_summary.txt_1 0.884112 1.62791 0.370968
parent_linked_5_summary.txt_2 0.867925 1.50217 0.671429
parent_linked_5_summary.txt_3 0.865385 1.64889 0.728571
parent_linked_5_summary.txt_4 0.869307 1.64465 0.787879

Variation was maintained in 20 of the 20. 0 of the 20 populations crashed. Of the 20 replicates, 20 reached an equilibrium by 10000 generations.

The evolution of the trait values may shed light on the variable outcomes:

Evolution of parenting trait values with linked QTLs

Evolution of parenting trait values with linked QTLs

Without viability selection

Frequency of parent morph with linked QTLs without viability selection (each color represents a different replicate)

Frequency of parent morph with linked QTLs without viability selection (each color represents a different replicate)

When only the parental trait is included in the model with linked QTLs, variable outcomes can be reached – although all include each rep reaching some stable state with minor fluctuations.

Frequency of parents with linked QTLs in final generation, with no viability selection
ParentFreq ParentW NonParentW
parent_linked_novs_1_summary.txt_1 0.825581 1.61737 0.511111
parent_linked_novs_1_summary.txt_2 0.606000 1.62706 0.324873
parent_linked_novs_1_summary.txt_3 0.736196 1.65000 0.496124
parent_linked_novs_1_summary.txt_4 0.795082 1.60052 0.510000
parent_linked_novs_2_summary.txt_1 0.715768 1.72754 0.386861
parent_linked_novs_2_summary.txt_2 0.834264 1.51562 0.561798
parent_linked_novs_2_summary.txt_3 0.684803 1.57260 0.488095
parent_linked_novs_2_summary.txt_4 0.817269 1.55774 0.703297
parent_linked_novs_3_summary.txt_1 0.715768 1.72754 0.386861
parent_linked_novs_3_summary.txt_2 0.834264 1.51562 0.561798
parent_linked_novs_3_summary.txt_3 0.684803 1.57260 0.488095
parent_linked_novs_3_summary.txt_4 0.817269 1.55774 0.703297
parent_linked_novs_4_summary.txt_1 0.745902 1.59615 0.612903
parent_linked_novs_4_summary.txt_2 0.781250 1.71500 0.482143
parent_linked_novs_4_summary.txt_3 0.814453 1.50600 0.631579
parent_linked_novs_4_summary.txt_4 0.782435 1.61735 0.513761
parent_linked_novs_5_summary.txt_1 0.745902 1.59615 0.612903
parent_linked_novs_5_summary.txt_2 0.781250 1.71500 0.482143
parent_linked_novs_5_summary.txt_3 0.814453 1.50600 0.631579
parent_linked_novs_5_summary.txt_4 0.782435 1.61735 0.513761

Variation was maintained in 20 of the 20. 0 of the 20 populations crashed. Of the 20 replicates, 20 reached an equilibrium by 10000 generations.

The evolution of the trait values may shed light on the variable outcomes:

Evolution of parenting trait values with linked QTLs and without viability selection

Evolution of parenting trait values with linked QTLs and without viability selection

Courtship and Parental Traits

Including both courtship and parental traits, along with linked loci, causes the outcomes to be even less predictable.

With viability selection

Frequency of the two morphs with linked QTLs (courter = green, parent = blue)

Frequency of the two morphs with linked QTLs (courter = green, parent = blue)

Because of the variable outcomes, it is useful to visualize the frequencies of the four morphs with each rep in its own graph.

Frequency of the 4 morphs in each rep with linked QTLs

Frequency of the 4 morphs in each rep with linked QTLs

In some of the runs the population crashed after few generations. This is obvious both from the figures and when looking at the the final frequencies in a table as well (pay attention to the generation number column):

Frequency of morphs in final generation (linked loci)
Generation Pop PopSize NumMal NumFem NumProgeny ParentThresh ParentFreq ParentAEmean ParentAEsd ParentW NonParentW CourterThresh CourterFreq CourterAEmean CourterAEsd CourterW NonCourterW FreqNcNp FreqCNp FreqNcP FreqCP PrefThresh PrefFreq
parent-courter_linked_1_summary.txt_1 1557 Pop0 8 3 5 4 0.522197 0.666667 0.529680 0.0326533 0.00000 0.000000 0.630698 0.333333 0.549301 0.2682840 0.000000 0.000000 0.0000000 0.3333330 0.6666670 0.0000000 NA NA
parent-courter_linked_1_summary.txt_2 1557 Pop1 94 52 42 127 0.522197 0.403846 0.495116 0.0670580 0.00000 0.354839 0.630698 0.634615 0.848429 0.4906490 0.333333 0.000000 0.0000000 0.5961540 0.3653850 0.0384615 NA NA
parent-courter_linked_1_summary.txt_3 1557 Pop2 186 92 94 221 0.522197 0.391304 0.485169 0.0829085 0.00000 0.142857 0.630698 0.608696 0.911379 0.6228070 0.142857 0.000000 0.0000000 0.6086960 0.3913040 0.0000000 NA NA
parent-courter_linked_1_summary.txt_4 1557 Pop3 115 53 62 137 0.522197 0.377358 0.479818 0.0667807 0.10000 0.303030 0.630698 0.660377 0.958224 0.4980410 0.342857 0.000000 0.0000000 0.6226420 0.3396230 0.0377358 NA NA
parent-courter_linked_2_summary.txt_1 1557 Pop0 8 3 5 4 0.522197 0.666667 0.529680 0.0326533 0.00000 0.000000 0.630698 0.333333 0.549301 0.2682840 0.000000 0.000000 0.0000000 0.3333330 0.6666670 0.0000000 NA NA
parent-courter_linked_2_summary.txt_2 1557 Pop1 94 52 42 127 0.522197 0.403846 0.495116 0.0670580 0.00000 0.354839 0.630698 0.634615 0.848429 0.4906490 0.333333 0.000000 0.0000000 0.5961540 0.3653850 0.0384615 NA NA
parent-courter_linked_2_summary.txt_3 1557 Pop2 186 92 94 221 0.522197 0.391304 0.485169 0.0829085 0.00000 0.142857 0.630698 0.608696 0.911379 0.6228070 0.142857 0.000000 0.0000000 0.6086960 0.3913040 0.0000000 NA NA
parent-courter_linked_2_summary.txt_4 1557 Pop3 115 53 62 137 0.522197 0.377358 0.479818 0.0667807 0.10000 0.303030 0.630698 0.660377 0.958224 0.4980410 0.342857 0.000000 0.0000000 0.6226420 0.3396230 0.0377358 NA NA
parent-courter_linked_3_summary.txt_1 1557 Pop0 8 3 5 4 0.522197 0.666667 0.529680 0.0326533 0.00000 0.000000 0.630698 0.333333 0.549301 0.2682840 0.000000 0.000000 0.0000000 0.3333330 0.6666670 0.0000000 NA NA
parent-courter_linked_3_summary.txt_2 1557 Pop1 94 52 42 127 0.522197 0.403846 0.495116 0.0670580 0.00000 0.354839 0.630698 0.634615 0.848429 0.4906490 0.333333 0.000000 0.0000000 0.5961540 0.3653850 0.0384615 NA NA
parent-courter_linked_3_summary.txt_3 1557 Pop2 186 92 94 221 0.522197 0.391304 0.485169 0.0829085 0.00000 0.142857 0.630698 0.608696 0.911379 0.6228070 0.142857 0.000000 0.0000000 0.6086960 0.3913040 0.0000000 NA NA
parent-courter_linked_3_summary.txt_4 1557 Pop3 115 53 62 137 0.522197 0.377358 0.479818 0.0667807 0.10000 0.303030 0.630698 0.660377 0.958224 0.4980410 0.342857 0.000000 0.0000000 0.6226420 0.3396230 0.0377358 NA NA
parent-courter_linked_4_summary.txt_1 11999 Pop0 1000 476 524 1000 -0.789316 0.928571 -0.608581 0.2330600 1.92534 1.823530 -1.678610 0.918067 -1.645100 0.0442278 1.963390 1.410260 0.0651261 0.0063025 0.0168067 0.9117650 NA NA
parent-courter_linked_4_summary.txt_2 11999 Pop1 982 498 484 1000 -0.789316 0.911647 -0.649468 0.1831180 1.83480 0.795455 -1.678610 0.937751 -1.647390 0.0385934 1.800860 0.870968 0.0582329 0.0301205 0.0040161 0.9076310 NA NA
parent-courter_linked_4_summary.txt_3 11999 Pop2 992 516 476 1000 -0.789316 0.928295 -0.624485 0.2118250 1.68685 1.297300 -1.678610 0.943798 -1.644200 0.0429798 1.691990 1.103450 0.0484496 0.0232558 0.0077519 0.9205430 NA NA
parent-courter_linked_4_summary.txt_4 11999 Pop3 1000 509 491 1000 -0.789316 0.933202 -0.626245 0.2143230 1.78737 1.529410 -1.678610 0.946955 -1.641590 0.0460745 1.788380 1.444440 0.0491159 0.0176817 0.0039293 0.9292730 NA NA
parent-courter_linked_5_summary.txt_1 11999 Pop0 1000 476 524 1000 -0.789316 0.928571 -0.608581 0.2330600 1.92534 1.823530 -1.678610 0.918067 -1.645100 0.0442278 1.963390 1.410260 0.0651261 0.0063025 0.0168067 0.9117650 NA NA
parent-courter_linked_5_summary.txt_2 11999 Pop1 982 498 484 1000 -0.789316 0.911647 -0.649468 0.1831180 1.83480 0.795455 -1.678610 0.937751 -1.647390 0.0385934 1.800860 0.870968 0.0582329 0.0301205 0.0040161 0.9076310 NA NA
parent-courter_linked_5_summary.txt_3 11999 Pop2 992 516 476 1000 -0.789316 0.928295 -0.624485 0.2118250 1.68685 1.297300 -1.678610 0.943798 -1.644200 0.0429798 1.691990 1.103450 0.0484496 0.0232558 0.0077519 0.9205430 NA NA
parent-courter_linked_5_summary.txt_4 11999 Pop3 1000 509 491 1000 -0.789316 0.933202 -0.626245 0.2143230 1.78737 1.529410 -1.678610 0.946955 -1.641590 0.0460745 1.788380 1.444440 0.0491159 0.0176817 0.0039293 0.9292730 NA NA

Multiple morphs are maintained in 20 of the 20 replicates, and those morphs contain either a parent or a courter. However, 12 of those reps with variation actually crashed.

Looking at the trait value evolution may help us understand why some of the runs resulted in extinction:

Evolution of the courter and parenting trait values in each rep with linked genetic variation

Evolution of the courter and parenting trait values in each rep with linked genetic variation

Without viability selection

Frequency of the two morphs with linked QTLs and without viability selection (courter = green, parent = blue)

Frequency of the two morphs with linked QTLs and without viability selection (courter = green, parent = blue)

Because of the variable outcomes, it is useful to visualize the frequencies of the four morphs with each rep in its own graph.

Frequency of the 4 morphs in each rep with linked QTLs without viability selection

Frequency of the 4 morphs in each rep with linked QTLs without viability selection

In some of the runs the population crashed after few generations. This is obvious both from the figures and when looking at the the final frequencies in a table as well (pay attention to the generation number column):

Frequency of morphs in final generation (linked loci, no viability selection)
Generation Pop PopSize NumMal NumFem NumProgeny ParentThresh ParentFreq ParentAEmean ParentAEsd ParentW NonParentW CourterThresh CourterFreq CourterAEmean CourterAEsd CourterW NonCourterW FreqNcNp FreqCNp FreqNcP FreqCP PrefThresh PrefFreq
parent-courter_linked_novs_1_summary.txt_1 11999 Pop0 1000 480 520 1000 0.933615 0.897917 1.333910 0.579584 1.9373500 1.306120 -0.114728 0.893750 0.182179 0.4312150 1.967370 1.078430 0.0895833 0.0125000 0.0166667 0.8812500 NA NA
parent-courter_linked_novs_1_summary.txt_2 11999 Pop1 993 499 494 1000 0.933615 0.885772 1.314860 0.563536 1.8936700 1.140350 -0.114728 0.887776 0.160480 0.4118220 1.896160 1.107140 0.1042080 0.0100200 0.0080160 0.8777560 NA NA
parent-courter_linked_novs_1_summary.txt_3 11999 Pop2 989 461 528 1000 0.933615 0.893709 1.335020 0.576297 2.0048500 1.367350 -0.114728 0.908894 0.191017 0.4312860 1.983290 1.476190 0.0867679 0.0195228 0.0043384 0.8893710 NA NA
parent-courter_linked_novs_1_summary.txt_4 11999 Pop3 993 513 480 1000 0.933615 0.851852 1.265330 0.522345 1.7597300 1.092110 -0.114728 0.867446 0.137293 0.3860480 1.759550 1.014710 0.1130600 0.0350877 0.0194932 0.8323590 NA NA
parent-courter_linked_novs_2_summary.txt_1 11999 Pop0 1000 493 507 1000 0.933615 0.920892 1.397390 0.621610 1.8281900 1.282050 -0.114728 0.920892 0.218400 0.4506270 1.848020 1.051280 0.0669371 0.0121704 0.0121704 0.9087220 NA NA
parent-courter_linked_novs_2_summary.txt_2 11999 Pop1 1000 526 474 1000 0.933615 0.910646 1.342900 0.567567 1.7411300 1.191490 -0.114728 0.927757 0.215363 0.4381490 1.739750 1.078950 0.0665399 0.0228137 0.0057034 0.9049430 NA NA
parent-courter_linked_novs_2_summary.txt_3 11999 Pop2 1000 506 494 1000 0.933615 0.899209 1.353970 0.582419 1.7868100 0.686275 -0.114728 0.909091 0.189434 0.4227330 1.776090 0.673913 0.0849802 0.0158103 0.0059288 0.8932810 NA NA
parent-courter_linked_novs_2_summary.txt_4 11999 Pop3 1000 467 533 1000 0.933615 0.877944 1.347710 0.617913 1.9902400 1.333330 -0.114728 0.890792 0.179219 0.4437650 1.978370 1.352940 0.1049250 0.0171306 0.0042827 0.8736620 NA NA
parent-courter_linked_novs_3_summary.txt_1 11999 Pop0 1000 493 507 1000 0.933615 0.920892 1.397390 0.621610 1.8281900 1.282050 -0.114728 0.920892 0.218400 0.4506270 1.848020 1.051280 0.0669371 0.0121704 0.0121704 0.9087220 NA NA
parent-courter_linked_novs_3_summary.txt_2 11999 Pop1 1000 526 474 1000 0.933615 0.910646 1.342900 0.567567 1.7411300 1.191490 -0.114728 0.927757 0.215363 0.4381490 1.739750 1.078950 0.0665399 0.0228137 0.0057034 0.9049430 NA NA
parent-courter_linked_novs_3_summary.txt_3 11999 Pop2 1000 506 494 1000 0.933615 0.899209 1.353970 0.582419 1.7868100 0.686275 -0.114728 0.909091 0.189434 0.4227330 1.776090 0.673913 0.0849802 0.0158103 0.0059288 0.8932810 NA NA
parent-courter_linked_novs_3_summary.txt_4 11999 Pop3 1000 467 533 1000 0.933615 0.877944 1.347710 0.617913 1.9902400 1.333330 -0.114728 0.890792 0.179219 0.4437650 1.978370 1.352940 0.1049250 0.0171306 0.0042827 0.8736620 NA NA
parent-courter_linked_novs_4_summary.txt_1 11999 Pop0 980 512 468 1000 -0.105665 0.464844 -0.114794 0.108740 0.0294118 0.412409 -0.359170 0.537109 -0.356093 0.0364008 0.436364 0.000000 0.0019531 0.5332030 0.4609380 0.0039062 NA NA
parent-courter_linked_novs_4_summary.txt_2 11999 Pop1 980 499 481 1000 -0.105665 0.464930 -0.112029 0.107393 0.0000000 0.453184 -0.359170 0.535070 -0.356999 0.0359518 0.453184 0.000000 0.0000000 0.5350700 0.4649300 0.0000000 NA NA
parent-courter_linked_novs_4_summary.txt_3 11999 Pop2 979 504 475 1000 -0.105665 0.462302 -0.114977 0.109187 0.0000000 0.372694 -0.359170 0.535714 -0.356055 0.0365506 0.374074 0.000000 0.0019841 0.5357140 0.4623020 0.0000000 NA NA
parent-courter_linked_novs_4_summary.txt_4 11999 Pop3 983 515 468 1000 -0.105665 0.454369 -0.116693 0.108979 0.0000000 0.327402 -0.359170 0.545631 -0.355486 0.0364892 0.327402 0.000000 0.0000000 0.5456310 0.4543690 0.0000000 NA NA
parent-courter_linked_novs_5_summary.txt_1 11999 Pop0 980 512 468 1000 -0.105665 0.464844 -0.114794 0.108740 0.0294118 0.412409 -0.359170 0.537109 -0.356093 0.0364008 0.436364 0.000000 0.0019531 0.5332030 0.4609380 0.0039062 NA NA
parent-courter_linked_novs_5_summary.txt_2 11999 Pop1 980 499 481 1000 -0.105665 0.464930 -0.112029 0.107393 0.0000000 0.453184 -0.359170 0.535070 -0.356999 0.0359518 0.453184 0.000000 0.0000000 0.5350700 0.4649300 0.0000000 NA NA
parent-courter_linked_novs_5_summary.txt_3 11999 Pop2 979 504 475 1000 -0.105665 0.462302 -0.114977 0.109187 0.0000000 0.372694 -0.359170 0.535714 -0.356055 0.0365506 0.374074 0.000000 0.0019841 0.5357140 0.4623020 0.0000000 NA NA
parent-courter_linked_novs_5_summary.txt_4 11999 Pop3 983 515 468 1000 -0.105665 0.454369 -0.116693 0.108979 0.0000000 0.327402 -0.359170 0.545631 -0.355486 0.0364892 0.327402 0.000000 0.0000000 0.5456310 0.4543690 0.0000000 NA NA

Multiple morphs are maintained in 20 of the 20 replicates, and those morphs contain either a parent or a courter. However, 0 of those reps with variation actually crashed.

Looking at the trait value evolution may help us understand why some of the runs resulted in extinction:

Evolution of the courter and parenting trait values in each rep with linked genetic variation and no viability selection

Evolution of the courter and parenting trait values in each rep with linked genetic variation and no viability selection

Supergenes

In these cases, the loci (50) are all located in one region of a chromosome, and that region has reduced recombination. As above, the overall trait value is compared to a population-level threshold (which is static, in these cases), and if the trait value is above the threshold the male takes the parent or courter morph and if it is below he does not. Below, I’m showing the results from 10 replicates of each scenario.

Courter trait

With viability selection

Frequency of the courter morph with supergenes (each color represents a different replicate)

Frequency of the courter morph with supergenes (each color represents a different replicate)

Of the 20 replicates, 0 reached an equilibrium by 10000 generations.

Frequency of courters with supergenes in final generation
CourterFreq CourterW NonCourterW
courter_supergene_1_summary.txt_1 1 2.02851 0
courter_supergene_1_summary.txt_2 1 1.96450 0
courter_supergene_1_summary.txt_3 1 2.07069 0
courter_supergene_1_summary.txt_4 1 1.98996 0
courter_supergene_2_summary.txt_1 1 2.02851 0
courter_supergene_2_summary.txt_2 1 1.96450 0
courter_supergene_2_summary.txt_3 1 2.07069 0
courter_supergene_2_summary.txt_4 1 1.98996 0
courter_supergene_3_summary.txt_1 1 2.02851 0
courter_supergene_3_summary.txt_2 1 1.96450 0
courter_supergene_3_summary.txt_3 1 2.07069 0
courter_supergene_3_summary.txt_4 1 1.98996 0
courter_supergene_4_summary.txt_1 1 2.03265 0
courter_supergene_4_summary.txt_2 1 2.05155 0
courter_supergene_4_summary.txt_3 1 2.05383 0
courter_supergene_4_summary.txt_4 1 1.89866 0
courter_supergene_5_summary.txt_1 1 2.03265 0
courter_supergene_5_summary.txt_2 1 2.05155 0
courter_supergene_5_summary.txt_3 1 2.05383 0
courter_supergene_5_summary.txt_4 1 1.89866 0

Looking at the evolution of the trait values:

Evolution of courtship trait with a supergene

Evolution of courtship trait with a supergene

Without viability selection

Frequency of the courter morph with supergenes without viability selection (each color represents a different replicate)

Frequency of the courter morph with supergenes without viability selection (each color represents a different replicate)

Of the 20 replicates, 0 reached an equilibrium by 10000 generations.

Frequency of courters with supergenes in final generation with no viability selection
CourterFreq CourterW NonCourterW
courter_supergene_novs_1_summary.txt_1 1 2.06186 0
courter_supergene_novs_1_summary.txt_2 1 1.94553 0
courter_supergene_novs_1_summary.txt_3 1 1.93424 0
courter_supergene_novs_1_summary.txt_4 1 1.99601 0
courter_supergene_novs_2_summary.txt_1 1 2.06186 0
courter_supergene_novs_2_summary.txt_2 1 1.94553 0
courter_supergene_novs_2_summary.txt_3 1 1.93424 0
courter_supergene_novs_2_summary.txt_4 1 1.99601 0
courter_supergene_novs_3_summary.txt_1 1 1.93798 0
courter_supergene_novs_3_summary.txt_2 1 1.98807 0
courter_supergene_novs_3_summary.txt_3 1 1.96078 0
courter_supergene_novs_3_summary.txt_4 1 2.00000 0
courter_supergene_novs_4_summary.txt_1 1 2.02429 0
courter_supergene_novs_4_summary.txt_2 1 2.07469 0
courter_supergene_novs_4_summary.txt_3 1 2.07469 0
courter_supergene_novs_4_summary.txt_4 1 2.04499 0
courter_supergene_novs_5_summary.txt_1 1 2.02429 0
courter_supergene_novs_5_summary.txt_2 1 2.07469 0
courter_supergene_novs_5_summary.txt_3 1 2.07469 0
courter_supergene_novs_5_summary.txt_4 1 2.04499 0

Looking at the evolution of the trait values:

Evolution of courtship trait with a supergene and without viability selection

Evolution of courtship trait with a supergene and without viability selection

Parental trait

With viability selection

Frequency of parent morph with supergenes (each color represents a different replicate)

Frequency of parent morph with supergenes (each color represents a different replicate)

Frequency of parents with supergenes in final generation
ParentFreq ParentW NonParentW
parent_supergene_1_summary.txt_1 0.841046 1.73684 0.632911
parent_supergene_1_summary.txt_2 0.836893 1.51740 0.452381
parent_supergene_1_summary.txt_3 0.847525 1.63084 0.558442
parent_supergene_1_summary.txt_4 0.832359 1.55738 0.558140
parent_supergene_2_summary.txt_1 0.841046 1.73684 0.632911
parent_supergene_2_summary.txt_2 0.836893 1.51740 0.452381
parent_supergene_2_summary.txt_3 0.847525 1.63084 0.558442
parent_supergene_2_summary.txt_4 0.832359 1.55738 0.558140
parent_supergene_3_summary.txt_1 0.859684 1.72414 0.718310
parent_supergene_3_summary.txt_2 0.879921 1.65101 0.852459
parent_supergene_3_summary.txt_3 0.864078 1.67191 0.671429
parent_supergene_3_summary.txt_4 0.879760 1.68337 0.900000
parent_supergene_4_summary.txt_1 0.859684 1.72414 0.718310
parent_supergene_4_summary.txt_2 0.879921 1.65101 0.852459
parent_supergene_4_summary.txt_3 0.864078 1.67191 0.671429
parent_supergene_4_summary.txt_4 0.879760 1.68337 0.900000
parent_supergene_5_summary.txt_1 0.859684 1.72414 0.718310
parent_supergene_5_summary.txt_2 0.879921 1.65101 0.852459
parent_supergene_5_summary.txt_3 0.864078 1.67191 0.671429
parent_supergene_5_summary.txt_4 0.879760 1.68337 0.900000

Variation was maintained in 20 of the 20. 0 of the 20 populations crashed. Of the 20 replicates, 20 reached an equilibrium by 10000 generations.

Let’s look at the trajectories of the parent traits.

Evolution of parenting trait values with a supergene

Evolution of parenting trait values with a supergene

Without viability selection

Frequency of parent morph with supergenes without viability selection (each color represents a different replicate)

Frequency of parent morph with supergenes without viability selection (each color represents a different replicate)

Frequency of parents with supergenes in final generation without viability selection
ParentFreq ParentW NonParentW
parent_supergene_novs_1_summary.txt_1 0.881092 1.62611 0.557377
parent_supergene_novs_1_summary.txt_2 0.868726 1.70000 0.558824
parent_supergene_novs_1_summary.txt_3 0.855131 1.62824 0.486111
parent_supergene_novs_1_summary.txt_4 0.875740 1.62162 0.761905
parent_supergene_novs_2_summary.txt_1 0.866142 1.71136 0.779412
parent_supergene_novs_2_summary.txt_2 0.875264 1.86473 0.864407
parent_supergene_novs_2_summary.txt_3 0.851301 1.53493 0.512500
parent_supergene_novs_2_summary.txt_4 0.862786 1.77108 0.560606
parent_supergene_novs_3_summary.txt_1 0.860153 1.55679 0.753425
parent_supergene_novs_3_summary.txt_2 0.871743 1.69885 0.750000
parent_supergene_novs_3_summary.txt_3 0.835317 1.53682 0.759036
parent_supergene_novs_3_summary.txt_4 0.835968 1.62411 0.590361
parent_supergene_novs_4_summary.txt_1 0.860153 1.55679 0.753425
parent_supergene_novs_4_summary.txt_2 0.871743 1.69885 0.750000
parent_supergene_novs_4_summary.txt_3 0.835317 1.53682 0.759036
parent_supergene_novs_4_summary.txt_4 0.835968 1.62411 0.590361
parent_supergene_novs_5_summary.txt_1 0.860153 1.55679 0.753425
parent_supergene_novs_5_summary.txt_2 0.871743 1.69885 0.750000
parent_supergene_novs_5_summary.txt_3 0.835317 1.53682 0.759036
parent_supergene_novs_5_summary.txt_4 0.835968 1.62411 0.590361

Variation was maintained in 20 of the 20. 0 of the 20 populations crashed. Of the 20 replicates, 20 reached an equilibrium by 10000 generations.

Let’s look at the trajectories of the parent traits.

Evolution of parenting trait values with a supergene without viability selection

Evolution of parenting trait values with a supergene without viability selection

Courtship and Parental Traits

With viability selection

The different runs have different outcomes. To better see this, let’s look at the morph frequencies in each rep separately.

Frequency of the 4 morphs in each rep with supergenes

Frequency of the 4 morphs in each rep with supergenes

Frequency of morphs in final generation (supergenes)
Generation Pop PopSize NumMal NumFem NumProgeny ParentThresh ParentFreq ParentAEmean ParentAEsd ParentW NonParentW CourterThresh CourterFreq CourterAEmean CourterAEsd CourterW NonCourterW FreqNcNp FreqCNp FreqNcP FreqCP PrefThresh PrefFreq
parent-courter_supergene_1_summary.txt_1 11999 Pop0 997 468 529 1000 0.263752 0.914530 0.543215 0.4596060 1.89486 1.450000 0.3495540 0.916667 0.514365 0.273161 1.892770 1.46154 0.0833333 0.0021368 0.000000 0.914530 NA NA
parent-courter_supergene_1_summary.txt_2 11999 Pop1 990 469 521 1000 0.263752 0.910448 0.549317 0.4644130 1.92740 1.380950 0.3495540 0.918977 0.518370 0.274847 1.916470 1.44737 0.0810235 0.0085288 0.000000 0.910448 NA NA
parent-courter_supergene_1_summary.txt_3 11999 Pop2 1000 497 503 1000 0.263752 0.909457 0.559899 0.4675390 1.84292 1.200000 0.3495540 0.923541 0.525210 0.277448 1.825710 1.28947 0.0764588 0.0140845 0.000000 0.909457 NA NA
parent-courter_supergene_1_summary.txt_4 11999 Pop3 1000 512 488 1000 0.263752 0.906250 0.543562 0.4632540 1.78664 1.104170 0.3495540 0.914062 0.513812 0.273884 1.779910 1.11364 0.0859375 0.0078125 0.000000 0.906250 NA NA
parent-courter_supergene_2_summary.txt_1 11999 Pop0 997 468 529 1000 0.263752 0.914530 0.543215 0.4596060 1.89486 1.450000 0.3495540 0.916667 0.514365 0.273161 1.892770 1.46154 0.0833333 0.0021368 0.000000 0.914530 NA NA
parent-courter_supergene_2_summary.txt_2 11999 Pop1 990 469 521 1000 0.263752 0.910448 0.549317 0.4644130 1.92740 1.380950 0.3495540 0.918977 0.518370 0.274847 1.916470 1.44737 0.0810235 0.0085288 0.000000 0.910448 NA NA
parent-courter_supergene_2_summary.txt_3 11999 Pop2 1000 497 503 1000 0.263752 0.909457 0.559899 0.4675390 1.84292 1.200000 0.3495540 0.923541 0.525210 0.277448 1.825710 1.28947 0.0764588 0.0140845 0.000000 0.909457 NA NA
parent-courter_supergene_2_summary.txt_4 11999 Pop3 1000 512 488 1000 0.263752 0.906250 0.543562 0.4632540 1.78664 1.104170 0.3495540 0.914062 0.513812 0.273884 1.779910 1.11364 0.0859375 0.0078125 0.000000 0.906250 NA NA
parent-courter_supergene_3_summary.txt_1 11999 Pop0 615 280 335 812 -1.539100 0.728571 -1.000390 0.7508210 2.17157 0.710526 0.0122363 0.635714 0.349595 0.619837 2.792130 0.00000 0.0000000 0.2714290 0.364286 0.364286 NA NA
parent-courter_supergene_3_summary.txt_2 11999 Pop1 504 251 253 546 -1.539100 0.454183 -1.546430 0.0454411 0.00000 0.284672 0.0122363 0.545817 0.164426 0.943188 0.284672 0.00000 0.0000000 0.5458170 0.454183 0.000000 NA NA
parent-courter_supergene_3_summary.txt_3 11999 Pop2 943 470 473 1000 -1.539100 0.959574 -1.520290 0.0199007 1.85366 1.894740 0.0122363 1.000000 0.964920 0.952683 1.855320 0.00000 0.0000000 0.0404255 0.000000 0.959574 NA NA
parent-courter_supergene_3_summary.txt_4 11999 Pop3 953 479 474 1000 -1.539100 1.000000 -1.518950 0.0201429 1.88935 0.000000 0.0122363 1.000000 0.964920 0.952683 1.889350 0.00000 0.0000000 0.0000000 0.000000 1.000000 NA NA
parent-courter_supergene_4_summary.txt_1 11999 Pop0 615 280 335 812 -1.539100 0.728571 -1.000390 0.7508210 2.17157 0.710526 0.0122363 0.635714 0.349595 0.619837 2.792130 0.00000 0.0000000 0.2714290 0.364286 0.364286 NA NA
parent-courter_supergene_4_summary.txt_2 11999 Pop1 504 251 253 546 -1.539100 0.454183 -1.546430 0.0454411 0.00000 0.284672 0.0122363 0.545817 0.164426 0.943188 0.284672 0.00000 0.0000000 0.5458170 0.454183 0.000000 NA NA
parent-courter_supergene_4_summary.txt_3 11999 Pop2 943 470 473 1000 -1.539100 0.959574 -1.520290 0.0199007 1.85366 1.894740 0.0122363 1.000000 0.964920 0.952683 1.855320 0.00000 0.0000000 0.0404255 0.000000 0.959574 NA NA
parent-courter_supergene_4_summary.txt_4 11999 Pop3 953 479 474 1000 -1.539100 1.000000 -1.518950 0.0201429 1.88935 0.000000 0.0122363 1.000000 0.964920 0.952683 1.889350 0.00000 0.0000000 0.0000000 0.000000 1.000000 NA NA
parent-courter_supergene_5_summary.txt_1 11999 Pop0 615 280 335 812 -1.539100 0.728571 -1.000390 0.7508210 2.17157 0.710526 0.0122363 0.635714 0.349595 0.619837 2.792130 0.00000 0.0000000 0.2714290 0.364286 0.364286 NA NA
parent-courter_supergene_5_summary.txt_2 11999 Pop1 504 251 253 546 -1.539100 0.454183 -1.546430 0.0454411 0.00000 0.284672 0.0122363 0.545817 0.164426 0.943188 0.284672 0.00000 0.0000000 0.5458170 0.454183 0.000000 NA NA
parent-courter_supergene_5_summary.txt_3 11999 Pop2 943 470 473 1000 -1.539100 0.959574 -1.520290 0.0199007 1.85366 1.894740 0.0122363 1.000000 0.964920 0.952683 1.855320 0.00000 0.0000000 0.0404255 0.000000 0.959574 NA NA
parent-courter_supergene_5_summary.txt_4 11999 Pop3 953 479 474 1000 -1.539100 1.000000 -1.518950 0.0201429 1.88935 0.000000 0.0122363 1.000000 0.964920 0.952683 1.889350 0.00000 0.0000000 0.0000000 0.000000 1.000000 NA NA

Multiple morphs are maintained in 20 of the 20 replicates, and those morphs contain either a parent or a courter. 0 of those reps with variation went extinct before 10000 generations.

Evolution of the courter and parenting trait values in each rep with a supergene

Evolution of the courter and parenting trait values in each rep with a supergene

Without viability selection

The different runs have different outcomes. To better see this, let’s look at the morph frequencies in each rep separately.

Frequency of the 4 morphs in each rep with supergenes without viability selection

Frequency of the 4 morphs in each rep with supergenes without viability selection

Frequency of morphs in final generation (supergenes and no viability selection)
Generation Pop PopSize NumMal NumFem NumProgeny ParentThresh ParentFreq ParentAEmean ParentAEsd ParentW NonParentW CourterThresh CourterFreq CourterAEmean CourterAEsd CourterW NonCourterW FreqNcNp FreqCNp FreqNcP FreqCP PrefThresh PrefFreq
parent-courter_supergene_novs_1_summary.txt_1 11999 Pop0 1000 539 461 1000 -0.125284 0.411874 -0.221956 0.8489540 0.00000 0.198738 0.854845 0.588126 0.883836 0.254588 0.198738 0.00000 0.0000000 0.588126 0.411874 0.000000 NA NA
parent-courter_supergene_novs_1_summary.txt_2 11999 Pop1 1000 540 460 1000 -0.125284 0.416667 -0.225065 0.8549870 0.00000 0.257143 0.854845 0.583333 0.884768 0.256397 0.257143 0.00000 0.0000000 0.583333 0.416667 0.000000 NA NA
parent-courter_supergene_novs_1_summary.txt_3 11999 Pop2 1000 536 464 1000 -0.125284 0.421642 -0.212558 0.8529190 0.00000 0.267742 0.854845 0.578358 0.881017 0.255777 0.267742 0.00000 0.0000000 0.578358 0.421642 0.000000 NA NA
parent-courter_supergene_novs_1_summary.txt_4 11999 Pop3 1000 536 464 1000 -0.125284 0.421642 -0.199379 0.8459160 0.00000 0.293548 0.854845 0.578358 0.877065 0.253677 0.293548 0.00000 0.0000000 0.578358 0.421642 0.000000 NA NA
parent-courter_supergene_novs_2_summary.txt_1 11999 Pop0 1000 539 461 1000 -0.125284 0.411874 -0.221956 0.8489540 0.00000 0.198738 0.854845 0.588126 0.883836 0.254588 0.198738 0.00000 0.0000000 0.588126 0.411874 0.000000 NA NA
parent-courter_supergene_novs_2_summary.txt_2 11999 Pop1 1000 540 460 1000 -0.125284 0.416667 -0.225065 0.8549870 0.00000 0.257143 0.854845 0.583333 0.884768 0.256397 0.257143 0.00000 0.0000000 0.583333 0.416667 0.000000 NA NA
parent-courter_supergene_novs_2_summary.txt_3 11999 Pop2 1000 536 464 1000 -0.125284 0.421642 -0.212558 0.8529190 0.00000 0.267742 0.854845 0.578358 0.881017 0.255777 0.267742 0.00000 0.0000000 0.578358 0.421642 0.000000 NA NA
parent-courter_supergene_novs_2_summary.txt_4 11999 Pop3 1000 536 464 1000 -0.125284 0.421642 -0.199379 0.8459160 0.00000 0.293548 0.854845 0.578358 0.877065 0.253677 0.293548 0.00000 0.0000000 0.578358 0.421642 0.000000 NA NA
parent-courter_supergene_novs_3_summary.txt_1 11999 Pop0 944 478 466 1000 -0.300758 0.912134 -0.226742 0.0783806 1.93349 1.119050 1.482630 0.912134 2.460770 1.035820 1.933490 1.11905 0.0878661 0.000000 0.000000 0.912134 NA NA
parent-courter_supergene_novs_3_summary.txt_2 11999 Pop1 945 458 487 1000 -0.300758 0.927948 -0.225552 0.0791775 2.03529 1.878790 1.482630 0.927948 2.476500 1.046350 2.035290 1.87879 0.0720524 0.000000 0.000000 0.927948 NA NA
parent-courter_supergene_novs_3_summary.txt_3 11999 Pop2 1000 476 524 1000 -0.300758 0.888655 -0.230285 0.0783230 2.00000 1.018870 1.482630 0.888655 2.413950 1.035060 2.000000 1.01887 0.1113450 0.000000 0.000000 0.888655 NA NA
parent-courter_supergene_novs_3_summary.txt_4 11999 Pop3 974 465 509 1000 -0.300758 0.909677 -0.227153 0.0783998 1.96454 1.547620 1.482630 0.909677 2.455350 1.036080 1.964540 1.54762 0.0903226 0.000000 0.000000 0.909677 NA NA
parent-courter_supergene_novs_4_summary.txt_1 11999 Pop0 944 478 466 1000 -0.300758 0.912134 -0.226742 0.0783806 1.93349 1.119050 1.482630 0.912134 2.460770 1.035820 1.933490 1.11905 0.0878661 0.000000 0.000000 0.912134 NA NA
parent-courter_supergene_novs_4_summary.txt_2 11999 Pop1 945 458 487 1000 -0.300758 0.927948 -0.225552 0.0791775 2.03529 1.878790 1.482630 0.927948 2.476500 1.046350 2.035290 1.87879 0.0720524 0.000000 0.000000 0.927948 NA NA
parent-courter_supergene_novs_4_summary.txt_3 11999 Pop2 1000 476 524 1000 -0.300758 0.888655 -0.230285 0.0783230 2.00000 1.018870 1.482630 0.888655 2.413950 1.035060 2.000000 1.01887 0.1113450 0.000000 0.000000 0.888655 NA NA
parent-courter_supergene_novs_4_summary.txt_4 11999 Pop3 974 465 509 1000 -0.300758 0.909677 -0.227153 0.0783998 1.96454 1.547620 1.482630 0.909677 2.455350 1.036080 1.964540 1.54762 0.0903226 0.000000 0.000000 0.909677 NA NA
parent-courter_supergene_novs_5_summary.txt_1 11999 Pop0 944 478 466 1000 -0.300758 0.912134 -0.226742 0.0783806 1.93349 1.119050 1.482630 0.912134 2.460770 1.035820 1.933490 1.11905 0.0878661 0.000000 0.000000 0.912134 NA NA
parent-courter_supergene_novs_5_summary.txt_2 11999 Pop1 945 458 487 1000 -0.300758 0.927948 -0.225552 0.0791775 2.03529 1.878790 1.482630 0.927948 2.476500 1.046350 2.035290 1.87879 0.0720524 0.000000 0.000000 0.927948 NA NA
parent-courter_supergene_novs_5_summary.txt_3 11999 Pop2 1000 476 524 1000 -0.300758 0.888655 -0.230285 0.0783230 2.00000 1.018870 1.482630 0.888655 2.413950 1.035060 2.000000 1.01887 0.1113450 0.000000 0.000000 0.888655 NA NA
parent-courter_supergene_novs_5_summary.txt_4 11999 Pop3 974 465 509 1000 -0.300758 0.909677 -0.227153 0.0783998 1.96454 1.547620 1.482630 0.909677 2.455350 1.036080 1.964540 1.54762 0.0903226 0.000000 0.000000 0.909677 NA NA

Multiple morphs are maintained in 20 of the 20 replicates, and those morphs contain either a parent or a courter. 0 of those reps with variation went extinct before 10000 generations.

Evolution of the courter and parenting trait values in each rep with a supergene without viability selection

Evolution of the courter and parenting trait values in each rep with a supergene without viability selection